﻿using DotNetExtensions.Core.IOC;
using DotNetExtensions.Core.MVC;
using DotNetExtensions.Core.WebApi.Jwt;
using DotNetExtensions.Core.WebApi.Services;
using SqlSugarSimple.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SqlSugarSimple.Services
{
    [AutoInject]
    public class MyJwtAuthService : JwtValidateService<UserModel>
    {
        private readonly AppSettings appSettings;
        public MyJwtAuthService(AppSettingLoader<AppSettings> loader)
        {
            appSettings = loader.AppSettings;
        }
        public override bool Validate(string token, ICollection<JwtParameter> parameters, out UserModel user, out string newToken)
        {
            newToken = "";
            user = new UserModel();
            return true;
        }
    }
}
